package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.CustomerStatementProductEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CustomerStatementProductDao {
    Integer insert(CustomerStatementProductEntity entity);

    void insertBatch(@Param("list") List<CustomerStatementProductEntity> list);

    CustomerStatementProductEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(CustomerStatementProductEntity entity);

    List<CustomerStatementProductEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    List<CustomerStatementProductEntity> getByStatementId(@Param("corpid") String corpid, @Param("statementId") Long statementId, @Param("snapshot") Integer snapshot);
}